package com.example.common.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "example.gener")
public class GenerConfig {

    /**
     * 作者
     */
    private String author;

    /**
     * 包名
     */
    private String packageName;

    /**
     * 默认模块
     */
    private String moduleName;

    /**
     * 表前缀
     */
    private String tablePrefix;

    /**
     * 排除生成前缀
     */
    private String notTablePrefix;

    /**
     * 生成路径
     */
    private String outTempPath;
    /**
     * 是否使用Swagger
     */
    private Boolean createSwagger;

    /**
     * 是否生成SQL
     */
    private Boolean createSql;

    /**
     * 是否生成页面
     */
    private Boolean createPage;


    /**
     * 模板类型（ftl/vm）
     */
    private String tempType;
    /**
     * 生成页面类型
     */
    private String createPageType;


    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getTablePrefix() {
        return tablePrefix;
    }

    public void setTablePrefix(String tablePrefix) {
        this.tablePrefix = tablePrefix;
    }

    public String getOutTempPath() {
        return outTempPath;
    }

    public void setOutTempPath(String outTempPath) {
        this.outTempPath = outTempPath;
    }

    public Boolean getCreateSwagger() {
        return createSwagger;
    }

    public void setCreateSwagger(Boolean createSwagger) {
        this.createSwagger = createSwagger;
    }

    public Boolean getCreateSql() {
        return createSql;
    }

    public void setCreateSql(Boolean createSql) {
        this.createSql = createSql;
    }

    public String getTempType() {
        return tempType;
    }

    public void setTempType(String tempType) {
        this.tempType = tempType;
    }

    public Boolean getCreatePage() {
        return createPage;
    }

    public void setCreatePage(Boolean createPage) {
        this.createPage = createPage;
    }


    public String getCreatePageType() {
        return createPageType;
    }

    public void setCreatePageType(String createPageType) {
        this.createPageType = createPageType;
    }


    public String getNotTablePrefix() {
        return notTablePrefix;
    }

    public void setNotTablePrefix(String notTablePrefix) {
        this.notTablePrefix = notTablePrefix;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }
}
